package org.example.lethear.dto.follow;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 关注DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class FollowDTO {
    
    private Long id;
    private LocalDateTime createdAt;
    
    /**
     * 关注者信息
     */
    private UserInfo follower;
    
    /**
     * 被关注者信息
     */
    private UserInfo following;
    
    /**
     * 用户信息内部类
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class UserInfo {
        private Long id;
        private String username;
        private String nickname;
        private String avatar;
        private String bio;
    }
} 